import 'package:json_annotation/json_annotation.dart';

part 'safer_bean.g.dart';

@JsonSerializable()
class SaferBean {
  String birthday;
  String expirydate;
  String reason;
  String employnum;
  String checkuser;
  String checktime;
  String orgnizName;
  String isvalid;
  String hiredate;
  String teachpermitted;
  String ischeck;
  String fstdrilicdate;
  String cardtype;
  String occupationno;
  String notice;
  String maicoding;
  String createtime;
  String drilicence;
  String address;
  String districtName;
  String platnum;
  String sex;
  String mobile;
  String fingerprinturl;
  String leavedate;
  String branchnum;
  String photourl;
  String secunum;
  String nationality;
  String phone;
  String idcard;
  String employstatus;
  String name;
  String tempcardno;
  String schName;
  String dripermitted;
  String updatetime;
  String inscode;
  int fingerprint;
  int photo;
  int occupationlevel;

  SaferBean(
      {this.birthday,
      this.expirydate,
      this.reason,
      this.employnum,
      this.checkuser,
      this.checktime,
      this.orgnizName,
      this.isvalid,
      this.hiredate,
      this.teachpermitted,
      this.ischeck,
      this.fstdrilicdate,
      this.cardtype,
      this.occupationno,
      this.notice,
      this.maicoding,
      this.createtime,
      this.drilicence,
      this.address,
      this.districtName,
      this.platnum,
      this.sex,
      this.mobile,
      this.fingerprinturl,
      this.leavedate,
      this.branchnum,
      this.photourl,
      this.secunum,
      this.nationality,
      this.phone,
      this.idcard,
      this.employstatus,
      this.name,
      this.tempcardno,
      this.schName,
      this.dripermitted,
      this.updatetime,
      this.inscode,
      this.fingerprint,
      this.photo,
      this.occupationlevel});

  SaferBean.fromJson(Map<String, dynamic> json) {
    this.birthday = json['birthday'];
    this.expirydate = json['expirydate'];
    this.reason = json['reason'];
    this.employnum = json['employnum'];
    this.checkuser = json['checkuser'];
    this.checktime = json['checktime'];
    this.orgnizName = json['orgnizName'];
    this.isvalid = json['isvalid'];
    this.hiredate = json['hiredate'];
    this.teachpermitted = json['teachpermitted'];
    this.ischeck = json['ischeck'];
    this.fstdrilicdate = json['fstdrilicdate'];
    this.cardtype = json['cardtype'];
    this.occupationno = json['occupationno'];
    this.notice = json['notice'];
    this.maicoding = json['maicoding'];
    this.createtime = json['createtime'];
    this.drilicence = json['drilicence'];
    this.address = json['address'];
    this.districtName = json['districtName'];
    this.platnum = json['platnum'];
    this.sex = json['sex'];
    this.mobile = json['mobile'];
    this.fingerprinturl = json['fingerprinturl'];
    this.leavedate = json['leavedate'];
    this.branchnum = json['branchnum'];
    this.photourl = json['photourl'];
    this.secunum = json['secunum'];
    this.nationality = json['nationality'];
    this.phone = json['phone'];
    this.idcard = json['idcard'];
    this.employstatus = json['employstatus'];
    this.name = json['name'];
    this.tempcardno = json['tempcardno'];
    this.schName = json['schName'];
    this.dripermitted = json['dripermitted'];
    this.updatetime = json['updatetime'];
    this.inscode = json['inscode'];
    this.fingerprint = json['fingerprint'];
    this.photo = json['photo'];
    this.occupationlevel = json['occupationlevel'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['birthday'] = this.birthday;
    data['expirydate'] = this.expirydate;
    data['reason'] = this.reason;
    data['employnum'] = this.employnum;
    data['checkuser'] = this.checkuser;
    data['checktime'] = this.checktime;
    data['orgnizName'] = this.orgnizName;
    data['isvalid'] = this.isvalid;
    data['hiredate'] = this.hiredate;
    data['teachpermitted'] = this.teachpermitted;
    data['ischeck'] = this.ischeck;
    data['fstdrilicdate'] = this.fstdrilicdate;
    data['cardtype'] = this.cardtype;
    data['occupationno'] = this.occupationno;
    data['notice'] = this.notice;
    data['maicoding'] = this.maicoding;
    data['createtime'] = this.createtime;
    data['drilicence'] = this.drilicence;
    data['address'] = this.address;
    data['districtName'] = this.districtName;
    data['platnum'] = this.platnum;
    data['sex'] = this.sex;
    data['mobile'] = this.mobile;
    data['fingerprinturl'] = this.fingerprinturl;
    data['leavedate'] = this.leavedate;
    data['branchnum'] = this.branchnum;
    data['photourl'] = this.photourl;
    data['secunum'] = this.secunum;
    data['nationality'] = this.nationality;
    data['phone'] = this.phone;
    data['idcard'] = this.idcard;
    data['employstatus'] = this.employstatus;
    data['name'] = this.name;
    data['tempcardno'] = this.tempcardno;
    data['schName'] = this.schName;
    data['dripermitted'] = this.dripermitted;
    data['updatetime'] = this.updatetime;
    data['inscode'] = this.inscode;
    data['fingerprint'] = this.fingerprint;
    data['photo'] = this.photo;
    data['occupationlevel'] = this.occupationlevel;
    return data;
  }
}
